<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title></title>
</head>
<body>
	标题
	<label><input type="text" name="title" placeholder="请输入标题"></label>
	 <!-- 加载编辑器的容器 -->
    <script id="container" name="content" type="text/plain">
        
    </script>
	<input type="button" value="提交" onclick="submit()">
	
	<script type="text/javascript" src="https://code.jquery.com/jquery-3.3.1.min.js"></script>
	<!--[if IE 8]>
	<script type="text/javascript" src="https://code.jquery.com/jquery-1.12.4.min.js"></script>
	<![endif]-->
    <!-- 配置文件 -->
    <script type="text/javascript" src="./utf8-jsp/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="./utf8-jsp/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container');
        submit = function(){
        	var title = document.getElementsByName("title")[0].value;
        	var content = ue.getContent();
        	$.post("http://www.mocky.io/v2/5b14f2f03200007900b8a074",{
	    		title: title,
	    		content: content
    		},function(result){
    			console.log(result);
    		});
        }
    </script>
</body>
</html>